package com.nengchuan.kbms.dfs.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nengchuan.kbms.common.IPageService;
import com.nengchuan.kbms.dfs.entity.dto.DataReceivePageDTO;
import com.nengchuan.kbms.dfs.entity.dto.DataShareDTO;
import com.nengchuan.kbms.dfs.entity.dto.DataSharePageDTO;
import com.nengchuan.kbms.dfs.entity.po.DataShare;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nengchuan.kbms.dfs.entity.vo.DataReceiveVO;
import com.nengchuan.kbms.dfs.entity.vo.DataShareVO;

/**
 * <p>
 * 文件分享 服务类
 * </p>
 *
 * @author abe
 * @since 2020-03-31
 */
public interface DataShareService extends IPageService<DataShare> {

    /**
     * 分享
     */
    Long share(DataShareDTO dataShareDTO);

    /**
     * 我的分享列表
     */
    IPage<DataShareVO> sharePage(DataSharePageDTO dataSharePageDTO);

    /**
     * 分享给我
     */
    IPage<DataReceiveVO> receivePage(DataReceivePageDTO dataReceivePageDTO);
}
